package com.tim.app.server.entry;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 故事
 */
public class Story extends BaseObject implements Parcelable {

    private static final long serialVersionUID = -485417149352074675L;

    private String content;//内容
    private String time;//录音时长
    private String audioUrl;//录音地址

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getAudioUrl() {
        return audioUrl;
    }

    public Story(){

    }

    protected Story(Parcel in) {
        setId(in.readString());
        setContent(in.readString());
        setImage(in.readString());
        setAudioUrl(in.readString());
        setTime(in.readString());
        setTitle(in.readString());
    }

    public void setAudioUrl(String audioUrl) {
        this.audioUrl = audioUrl;
    }

    public static final Creator<Story> CREATOR = new Creator<Story>() {
        @Override
        public Story createFromParcel(Parcel in) {
            return new Story(in);
        }

        @Override
        public Story[] newArray(int size) {
            return new Story[size];
        }
    };


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(getId());
        dest.writeString(getContent());
        dest.writeString(getImage());
        dest.writeString(getAudioUrl());
        dest.writeString(getTime());
        dest.writeString(getTitle());
    }
}
